<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@page import="com.adtech.core.exception.ErrorCode"%>
<%@page import="com.adtech.core.web.action.AjaxResult"%>
<%@page import="com.adtech.core.Settings"%>
<%@page import="com.adtech.adms.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+":////"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link rel="stylesheet" type="text/css"  href="<s:url value='/theme/common/error.css'/>"/>
<script type="text/javascript" src="<s:url value='/js/error.js'/>"></script>
<base href="<%=basePath%>">
<basePath value = "<%=basePath%>" id = "basePath"></basePath>
<script type="text/javascript">
	var baserUrl = $('#basePath').attr("value");
</script>

<script type="text/javascript" language="javascript">
//上下文路径
TDQS.CONTEXT_PATH = '<s:url value="/"/>';
//Ajax响应成功状态标识
TDQS.AJAX_STATUS_SUCCESS = <%=AjaxResult.STATUS_SUCCESS%>;
//Ajax响应失败状态标识
TDQS.AJAX_STATUS_FAILTURE = <%=AjaxResult.STATUS_FAILURE%>;
//Session过期错误码
TDQS.SESSION_TIMEOUT = '<%=ErrorCode.SESSION_TIMEOUT%>';
//用于区分普通请求和Ajax请求的标识，通过tdqsAjax提交时自动追加
TDQS.PARAM_KEY_AJAX = '<%=Constants.PARAM_KEY_AJAX%>';
//Session ID，用于Uploadify上传组件
TDQS.SESSION_ID = '<%=session.getId()%>';
TDQS.SYNC_NODE = '<%=Settings.SYNC_NODE%>';
</script>

<div id="errorDialog" title="错误">
	<div class="warningImg"></div>
	<div>
	<ul>
		<li class="errorMessage"></li>
	</ul>
	</div>

</div>